﻿using System.Windows;
using System.Windows.Input;
using BLL.Utils;
using CloudClipboardSync.Model;

namespace CloudClipboardSync.Windows
{
    /// <summary>
    /// Interaction logic for LoginWindow.xaml
    /// </summary>
    public partial class LoginWindow
    {
        public LoginWindow()
        {
            InitializeComponent();
        }

        private void PasswordBoxKeyUp(object sender, KeyEventArgs e)
        {
            (DataContext as LoginWindowModel).Do(x =>
            {
                x.LoginError = false;
                x.UsernameIsEmpty = false;
            });
        }
    }
}
